<template>
  <div>
    {{ testName }}
    <el-button @click="addNum"></el-button>
    <router-view></router-view>
  </div>
</template>
<script>
export default {
  // model: {
  //   prop: 'testName',
  //   event: 'updated'
  // },
  props: {
    // ['testName']

    testName: {
      type: String,
      default: 'this is temp'
    }
  },
  // data() {
  //   return {
  //     // Name: this.testName + '2'
  //   }
  // },
  methods: {
    addNum () {
      this.testName += '1'
      // this.$emit('update:testName', this.testName)
    }
  }
}
</script>
